<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fmt_rt" uri="http://java.sun.com/jstl/fmt_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>
<%@ taglib prefix="x_rt" uri="http://java.sun.com/jstl/xml_rt"%>
<%@ taglib prefix="wr_fn" uri="http://njo.org/taglib/functions"%>
<form name="f1" action="${pageContext.request.contextPath}/processor.xxxxx.tiles" method="post">
<table width="98%">
  <tr>
    <td class="left"><a name="title"><b>Action 列表</b></a></td>
    <td class="right"><a href="${pageContext.request.contextPath}/processor.xxxxx.tiles">添加Action</a> <a href="javascript:document.f1.submit();">删除Action</a></td>
  </tr>
</table>
<table class="forum" width="98%">
<col width="10"/>
<col width="150"/>
<col width="*"/>
<tbody>
  <tr>
    <th>&nbsp;</th>
    <th>Path</th>
    <th>Roles</th>
  </tr>
<c:forEach items="${mappingList}" var="item" varStatus="itemStatus">
  <tr class="${(itemStatus.index%2==0) ? 'even' : 'odd'}">
    <td><input type="checkbox" name="delGroups" value="${item.path}"/></td>
    <td><a href="${pageContext.request.contextPath}/processor.loadgroup.tiles?name=${item.path}">${item.path}</a></td>
    <td class="left">${fn:join(item.roles, ",")}</td>
  </tr>
</c:forEach>
</tbody>
</table>
</form>